function multiply(n: number, ...m: number[]) {
    return m.map(x => x * n);
}

multiply(2, 1, 2, 3);

const arr1 = [1, 2, 3];
const arr2 = [4, 5, 6];
arr1.push(...arr2);

// const args = [8, 5];
// // 扩张参数必须具有元组类型或传递给 rest 参数。
// const angle = Math.atan2(...args);

const args = [8, 5] as const;
const angle = Math.atan2(...args);

export {};
